﻿namespace Maltose.MessageQueue.Extensions
{

    /// <summary>
    /// 短信类型
    /// </summary>
    public enum SmsType
    {
        /// <summary>
        /// 其它
        /// </summary>
        None,
        /// <summary>
        /// 验证码
        /// </summary>
        VerificationCode
    }

    /// <summary>
    /// 发送短信参数
    /// </summary>
    public class SmsMessage 
    {

        /// <summary>
        /// 唯一ID
        /// </summary>
        public string CacheId { get; set; } = string.Empty;

        /// <summary>
        /// 模板ID
        /// </summary>
        public string TempleteId { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 模板ID
        /// </summary>
        public string ModuleName { get; set; }

        /// <summary>
        /// 短信内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 短信类型
        /// </summary>
        public SmsType SmsType { get; set; }


        /// <summary>
        /// 发送短信参数
        /// </summary>
        public SmsMessage()
        {
            CacheId += Mobile;
        }
    }
}
